<form action="<?=$this->base_url?>save" method="post">
	<table class="datatable" align="center" border="1">
		<thead>
			<tr>
				<th><?=$mvc->tr('Name');?></th>
				<th><?=$mvc->tr('Visible');?></th>
			</tr>
		</thead>
	
	<?
		foreach($this->data as $name => $contr)
		{
			echo '<tr>';
			echo '<td>'.$name.'</td>';
			echo '<td><input type="checkbox" name="'.$name.'_mode" '.(($contr['visible'] == 1)?'checked':'') .'></td>';
			echo '</tr>';
		}
	?>
	
		<tr>
			<td colspan="2" align="center"><input type="submit" value="<?=$mvc->tr('Save')?>"/></td>
		</tr>
	</table>
</form>